package com.frontop.bigdata.modules.mapper;

import com.alibaba.fastjson.JSONObject;
import com.frontop.bigdata.modules.model.BigDataAccessPage;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 大数据统计--受访页面统计 Mapper 接口
 * </p>
 *
 * @author YangJia
 * @since 2022-02-11
 */
@Mapper
public interface BigDataAccessPageMapper extends BaseMapper<BigDataAccessPage> {
    /**
     * 获取各个网页的总浏览量
     * @param orgId 企业id
     * @return
     */
    List<JSONObject> getPageVariousTotal(@Param("orgId") Integer orgId);
    /**
     * 获取近七天各个网页的浏览量
     * @param orgId 企业id
     * @return
     */
    List<JSONObject> getPageVariousTotalBySevenDays(@Param("orgId") Integer orgId);


}
